package cn.tianjindong.blog.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class BlogManagerVisitlog {
    private Long id;

    private Date visitTime;

    private String ipaddr;

    private Integer status;

    private Long managerId;
    
    private BlogManager manager;//该记录所对应的管理员
    
    private static SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public BlogManager getManager() {
		return manager;
	}

	public void setManager(BlogManager manager) {
		this.manager = manager;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getVisitTime() {
        return visitTime;
    }

    public void setVisitTime(Date visitTime) {
        this.visitTime = visitTime;
    }

    public String getIpaddr() {
        return ipaddr;
    }

    public void setIpaddr(String ipaddr) {
        this.ipaddr = ipaddr == null ? null : ipaddr.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getManagerId() {
        return managerId;
    }

    public void setManagerId(Long managerId) {
        this.managerId = managerId;
    }
    
	public String getStringVisittime() {
		String dateStr = dateFormat.format(visitTime);
		return dateStr;
	}

}